From 03cd09e044498c26beb79dbb0967bcc326cab7ae Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Tue, 19 May 2009 23:30:32 +0100 Subject: [PATCH] gnttab: Remove unused per-domain map_count field Signed-off-by: Steven Smith --- xen/common/grant_table.c | 2 -- xen/include/xen/grant_table.h | 1 - 2 files changed, 3 deletions(-) diff --git a/xen/common/grant_table.c b/xen/common/grant_table.c index 1c32772a88..613caed877 100644 --- a/xen/common/grant_table.c +++ b/xen/common/grant_table.c @@ -119,7 +119,6 @@ __get_maptrack_handle( if ( unlikely((h = t->maptrack_head) == (t->maptrack_limit - 1)) ) return -1; t->maptrack_head = maptrack_entry(t, h).ref; - t->map_count++; return h; } @@ -129,7 +128,6 @@ put_maptrack_handle( { maptrack_entry(t, handle).ref = t->maptrack_head; t->maptrack_head = handle; - t->map_count--; } static inline int diff --git a/xen/include/xen/grant_table.h b/xen/include/xen/grant_table.h index d0e8040a19..096af9bb4c 100644 --- a/xen/include/xen/grant_table.h +++ b/xen/include/xen/grant_table.h @@ -91,7 +91,6 @@ struct grant_table { struct grant_mapping **maptrack; unsigned int maptrack_head; unsigned int maptrack_limit; - unsigned int map_count; /* Lock protecting updates to active and shared grant tables. */ spinlock_t lock; }; -- 2.30.2